import { Entity, Column } from 'typeorm';
import {BaseEntity} from "@/entitys/common/baseEntity";

@Entity({comment: "用户表"})
export class User extends BaseEntity{
    @Column({unique: true, comment: '手机号'})
    phone: string;

    @Column({comment: '登录密码'})
    password: string;

    @Column({comment: '姓名'})
    name: string;

    @Column({comment: '状态'})
    state: number;
}
